package yanglib.session;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 9/9/14
 * Time: 1:37 PM
 * To change this template use File | Settings | File Templates.
 */
public interface Callback {

    public boolean handleReply(PendingRequest pRequest, Reply reply);

    public void complete(PendingRequest pRequest);

    public void handleError(PendingRequest pRequest, int target, Exception e);

    public void timeout(PendingRequest pRequest);
}
